<?php
	$a =&get_instance();
	$a->load->model('Mnews_cat');
	$type =$a->Mnews_cat->get_cattype();
?>
<ul id="list_pro">
	<?php if(!empty($type)){ foreach ($type as $data){?>
        	<optgroup style="color:#0C3" label="<?php if(empty($_SESSION['lang'])) echo $data['cat_name_en']; else echo $data['cat_name']?>"> </optgroup>
            <?php if(!empty($data['typename'])){foreach ($data['typename'] as $datasub){?>
            <option <?php echo (isset($_REQUEST['tower']) && $_REQUEST['tower'] == $datasub['type_id'])? 'selected="selected"':'';?> value="<?php echo $datasub['type_id']; ?>"><?php if(empty($_SESSION['lang'])) echo $datasub['type_name_en'] ;else echo $datasub['type_name']?></option>
            <?php }}?>
     <?php }}?>

</ul>